<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="${baseUrl!}/old/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="${baseUrl!}/old/Public/css/report.css" rel="stylesheet">
    <title>报修信息</title>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                
                <form class="form-horizontal" action="{:U('Device/report_adds')}"  enctype="multipart/form-data" method="POST">
                    <fieldset>
                        <legend>报修信息</legend> 
                        <div class="form-group">
                            <label class="control-label col-md-2">设备名称</label>
                            <span id="equip-name" class="text-left col-md-10">
                                ${hdevice_code!}
                            </span>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-2">上次维修</label>
                            <span id="lastDate" class="text-left col-md-10">
                            </span>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-2">设备型号</label>
                            <span id="equip-id" class="text-left col-md-10">
                            </span>
                        </div>
                        <div class="form-group">
                            <label for="reporter-name" class="control-label col-md-2">报修人</label>
                            <div class="col-md-10">
                                <input type="text" id="reporter-name"name="report_name" class="form-control necessary" placeholder="请输入报修人姓名" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="reporter-phone" class="control-label col-md-2">电话</label>
                            <div class="col-md-10">
                                <input type="text" id="reporter-phone"  name="report_call" class="form-control necessary" placeholder="请输入报修人电话" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="describe" class="control-label col-md-2 necessary">故障描述</label>
                            <div class="col-md-10">
                                <textarea id="describe" name="report_message" class="form-control" rows="3" placeholder="请输入故障详情"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="getImg" class="control-label col-md-2">附件图片</label>
                            <div class="col-md-10">
                                    <input type="file" id="getImg" name="image" accept="image/*">
                                    <button id="imgBtn" type="button" class="col-md-4">选择图片</button>
                                    <div class="col-md-10">
                                        <img id="img" class="center-block" />
                                    </div>
                            </div>
                        </div>
                        <button id="submit" class="btn btn-primary center-block form-control">提交</button>
                    </fieldset>
                </form>
                <br/>
                <a href="{$code}" class="btn btn-primary center-block form-control">前往维修</a>
            </div>
        </div>
    </div>
</body>

<script src="${baseUrl!}/old/Public/js/jquery.min.js"></script>
<script src="${baseUrl!}/old/Public/js/bootstrap.min.js"></script>
<script src="${baseUrl!}/old/Public/js/report.js"></script>
</html>